/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.document.domain;

import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author oyun
* @date 2024-05-11
**/
@Data
@TableName("book_documents")
public class BookDocuments extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "isbn")
    private String isbn;

    @ApiModelProperty(value = "分类id")
    private Long classificationId;

    @ApiModelProperty(value = "内容语言id")
    private Long dictionaryId;

    @ApiModelProperty(value = "mnName")
    private String mnName;

    @ApiModelProperty(value = "nameCode")
    private String nameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "拉丁撰写题名")
    private String ldName;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "出版者")
    private String publisher;

    @ApiModelProperty(value = "出版地")
    private String placePublication;

    @ApiModelProperty(value = "印刷者")
    private String printer;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "开本")
    private String format;

    @ApiModelProperty(value = "简介")
    private String intro;

    @ApiModelProperty(value = "remark")
    private String remark;

    @ApiModelProperty(value = "status")
    private Integer status;

    public void copy(BookDocuments source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
